package com.yankaizhang.blog.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.*;
import org.springframework.stereotype.Component;

@Aspect
@Component
@Slf4j
public class LogAspect {

    @Pointcut("execution(* com.yankaizhang.blog.controller.HomeController.*(..))")
    public void pointCut(){

    }

    @Before("pointCut()")
    public void before(){
        log.debug(this.getClass().toGenericString());
    }

    @Before("pointCut()")
    public void after(){
        log.debug(this.getClass().toGenericString());
    }
}
